package com.lovar.gaming.dao.repository;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovar.gaming.dao.domain.SysUserRole;
import com.lovar.gaming.dao.mapper.SysUserRoleMapper;
import org.springframework.stereotype.Service;

/**
 * @author 穹龙
 * @description 针对表【sys_user_role(用户角色表)】的数据库操作Repository实现
 * @createDate 2024-08-06 17:09:56
*/
@Service
public class SysUserRoleRepository extends ServiceImpl<SysUserRoleMapper, SysUserRole> {

    /**
     * 根据主键获取用户角色表详情
     *
     * @param id 主键Id
     * @return SysUserRole
    */
    public SysUserRole queryById(String id) {
        return lambdaQuery().eq(SysUserRole::getId, id).one();
    }

}




